package com.guet.common.entity;


import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author dragon
 */
@Data
public class PageVO implements Serializable {
    private static final long serialVersionUID = -4117813586676993031L;
    @NotNull(message = "当前页码不能为空")
    @Range(min = 1, message = "当前页码最小从第1页开始")
    private Integer pageNum;
    @NotNull(message = "每页显示最多记录数不能为空")
    private Integer pageSize;
}
